home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / assert.cc,v < prev    next >
Text File  |  1989-10-04  |  3KB  |  147 lines

  1. head     3.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 3.3
  10. date     89.10.04.13.45.34;  author grunwald;  state Exp;
  11. branches ;
  12. next     3.2;
  13.  
  14. 3.2
  15. date     89.02.20.15.38.20;  author grunwald;  state Exp;
  16. branches ;
  17. next     3.1;
  18.  
  19. 3.1
  20. date     88.12.20.13.49.27;  author grunwald;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     88.10.30.13.04.42;  author grunwald;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.09.28.22.13.37;  author grunwald;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.09.18.16.42.31;  author grunwald;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @@
  42.  
  43.  
  44. 3.3
  45. log
  46. @*** empty log message ***
  47. @
  48. text
  49. @// This may look like C code, but it is really -*- C++ -*-
  50. /* 
  51. Copyright (C) 1988 Free Software Foundation
  52.     written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  53.  
  54. This file is part of GNU CC.
  55.  
  56. GNU CC is distributed in the hope that it will be useful,
  57. but WITHOUT ANY WARRANTY.  No author or distributor
  58. accepts responsibility to anyone for the consequences of using it
  59. or for whether it serves any particular purpose or works at all,
  60. unless he says so in writing.  Refer to the GNU CC General Public
  61. License for full details.
  62.  
  63. Everyone is granted permission to copy, modify and redistribute
  64. GNU CC, but only under the conditions described in the
  65. GNU CC General Public License.   A copy of this license is
  66. supposed to have been given to you along with GNU CC so you
  67. can know your rights and responsibilities.  It should be in a
  68. file named COPYING.  Among other things, the copyright notice
  69. and this notice must be preserved on all copies.  
  70. */
  71. #include <stream.h>
  72. #include <assert.h>
  73.  
  74. const int SubClassResponsibility = 0;
  75.  
  76. void _assert(const char *reason,
  77.          const char *file, const int line)
  78. {
  79.     cerr << "Assertion " << reason << " failed: file " << file << " line " << line << "\n";
  80.     abort();
  81.     exit(1);
  82. }
  83.  
  84. void _assert2(const char *reason,
  85.          const char *file, const int line,
  86.          const char *string)
  87. {
  88.     cerr << "Assertion " << reason << " failed: file " << file << " line " << line << "\n";
  89.     if (string != 0) {
  90.     cerr << "Comment: " << string << "\n";
  91.     }
  92.     cout.flush();
  93.     cerr.flush();
  94.     abort();
  95.     exit(1);
  96. }
  97. @
  98.  
  99.  
  100. 3.2
  101. log
  102. @Start using Gnu library heaps for schedulers
  103. @
  104. text
  105. @d26 2
  106. @
  107.  
  108.  
  109. 3.1
  110. log
  111. @Steay version
  112. @
  113. text
  114. @@
  115.  
  116.  
  117. 1.3
  118. log
  119. @*** empty log message ***
  120. @
  121. text
  122. @@
  123.  
  124.  
  125. 1.2
  126. log
  127. @*** empty log message ***
  128. @
  129. text
  130. @d30 1
  131. d42 3
  132. @
  133.  
  134.  
  135. 1.1
  136. log
  137. @Initial revision
  138. @
  139. text
  140. @d26 1
  141. a26 1
  142. void _assert(char *reason,
  143. d33 1
  144. a33 1
  145. void _assert2(char *reason,
  146. @
  147.